<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/main.css"/>
    <script type="text/javascript" src="/Public/static/jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/libs/modernizr.min.js"></script>
     <script type="text/javascript" src="/Public/Admin/js/jquery-1.9.1.min.js"></script>
         <script type="text/javascript" src="/Public/Admin/js/libs/modernizr.min.js"></script>
         <script src="/Public/Admin/js/validateForm.js" ></script>
         <script type="text/javascript" src="/Public/Admin/js/Validform_v5.3.2_min.js"></script>
     <script type="text/javascript" src="/Public/Admin/js/libs/alertAndConfirm.js"></script>

<script type="text/javascript" src="/Public/Admin/js/jquery.uploadify.js"></script>
<script type="text/javascript" src="/Public/Admin/js/jquery.uploadify.min.js"></script>

    <script type="text/javascript" charset="utf-8" src="/Public/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/Public/ueditor/ueditor.all.min.js"></script>
    <script>
   Validator.ExtraRight = "<img src=\"/Public/Admin/images/check_right.gif\">&nbsp;"; //!!!! 此变量必须重新指定，默认为空值，请把它改成当验证成功时你想要显示的图标 !!!!//
   Validator.ExtraError = "<img src=\"/Public/Admin/images/check_error.gif\">&nbsp;"; //!!!! 此变量必须重新指定，默认为空值，请把它改成当验证失败时你想要显示的图标 !!!!//

</script>
</head>
<style type="text/css">
.pages {

    margin: 20px 350px;
}
.pages a,.pages span {
    display:inline-block;
    padding:2px 5px;
    margin:0 1px;
    border:1px solid #f0f0f0;
    -webkit-border-radius:3px;
    -moz-border-radius:3px;
    border-radius:3px;
}
.pages a,.pages li {
    display:inline-block;
    list-style: none;
    text-decoration:none; color:#58A0D3;
}
.pages a.first,.pages a.prev,.pages a.next,.pages a.end{
    margin:0;
}
.pages a:hover{
    border-color:#50A8E6;
}
.pages span.current{
    background:#50A8E6;
    color:#FFF;
    font-weight:700;
    border-color:#50A8E6;
}
</style>
<body>

<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a class="on" href="/Admin">首页</a></li>
                <li><a href="http://hubao.ynten.com/" target="_blank">网站首页</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <?php if($_SESSION['adminname']): ?><li style="color:red"> 欢迎你：Admin</li>
                <?php else: ?> <li> 管理员</li><?php endif; ?>
                <li><a href="/Admin/Login/editpwd">修改密码</a></li>
                <li><a href="/Admin/Login/profile">修改资料</a></li>
                <li><a href="/Admin/Login/logout">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-content">
            <ul class="sidebar-list">
                 <li>
                    <a href="#"><i class="icon-font">&#xe003;</i>系统设置</a>
                    <ul class="sub-menu">
                        <li><a href="<?php echo U('Other/index');?>"><i class="icon-font">&#xe008;</i>信息设置</a></li>
                        <li><a href="<?php echo U('Site/index');?>"><i class="icon-font">&#xe006;</i>网站设置</a></li>
						<li><a href="<?php echo U('Waiter/index');?>"><i class="icon-font">&#xe005;</i>客服设置</a></li>
                        <li><a href="<?php echo U('Site/flash');?>"><i class="icon-font">&#xe007;</i>幻灯管理</a></li>
                        <li><a href="<?php echo U('Url/index');?>"><i class="icon-font">&#xe009;</i>友情链接</a></li>
                        <li><a href="<?php echo U('Waiter/message');?>"><i class="icon-font">&#xe025;</i>短信邮箱账号</a></li>
                    </ul>
                </li>

			<li>
                    <a href="#"><i class="icon-font">&#xe035;</i>银行卡管理</a>
                    <ul class="sub-menu">
                        <li><a href="<?php echo U('Card/index');?>"><i class="icon-font">&#xe036;</i>银行卡列表</a></li>
                        <li><a href="<?php echo U('Card/insert');?>"><i class="icon-font">&#xe038;</i>银行卡添加</a></li>
                    </ul>
                </li>
		<!--  		<li>
                    <a href="#"><i class="icon-font">&#xe015;</i>财务审核</a>
                    <ul class="sub-menu">
                        <li><a href="/Admin/Gongshi/index"><i class="icon-font">&#xe034;</i>计划审核</a></li>
                        <li><a href="/Admin/Huo/index"><i class="icon-font">&#xe034;</i>活动审核</a></li>
                        <li><a href="/Admin/User/xian"><i class="icon-font">&#xe028;</i>提现订单</a></li>
                        <li><a href="#"><i class="icon-font">&#xe032;</i>财务总览</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#"><i class="icon-font">&#xe018;</i>公文配置</a>
                    <ul class="sub-menu">
                        <li><a href="/Admin/Gong/updatelc"><i class="icon-font">&&#xe022;</i>互保流程</a></li>
                        <li><a href="/Admin/Gong/index"><i class="icon-font">&#xe021;</i>互保公约</a></li>
                    </ul>
                </li> -->
				<li>
                    <a href="#"><i class="icon-font">&#xe050;</i>用户</a>
                    <ul class="sub-menu">
					    <li><a href="/Admin/User/index"><i class="icon-font">&#xe008;</i>会员中心</a></li>
						<!-- <li><a href="/Admin/Admin"><i class="icon-font">&#xe005;</i>管理员</a></li> -->
                        <!-- <li><a href="system.html"><i class="icon-font">&#xe031;</i>信用中心</a></li> -->
                        <!-- <li><a href="/Admin/Userfan/index"><i class="icon-font">&#xe039;</i>用户反馈</a></li> -->
                    </ul>
                </li>
                 <li>
                    <a href="#"><i class="icon-font">&#xe050;</i>管理员</a>
                    <ul class="sub-menu">
                        <li><a href="/Admin/Rbac/index"><i class="icon-font">&#xe008;</i>管理员</a></li>
                        <li><a href="/Admin/Rbac/role"><i class="icon-font">&#xe005;</i>角色管理</a></li>
                        <li><a href="/Admin/Rbac/jurisdiction"><i class="icon-font">&#xe039;</i>节点管理</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    
    <!--/sidebar-->

    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list"> <i class="icon-font"></i>
                <a href="/Admin">首页</a>
                <span class="crumb-step">&gt;</span>
                <span class="crumb-name">用户管理</span>
            </div>
        </div>
        <div class="result-wrap">
            <div class="result-content">

                <!-- <?php var_dump($vo)?>
                -->
                <table class="result-tab" width="100%">
                    <tr>
                        <th>ID</th>
                        <th>电话</th>
                        <!-- <th>会员邮箱</th>
                    -->
                    <th>推荐人ID</th>
                    <th>会员姓名</th>
                    <th>账户余额</th>
                    <th>冻结金钱</th>
                    <th>注册时间</th>
                    <th>会员状态</th>
                    <!-- <th>计划条款</th>
                -->
                <!-- <th>加入人数</th>
            -->
            <th>操作</th>
        </tr>
        <tr>
            <td>
                <?php echo ($vo["uid"]); ?></td>
                <td>
                    <?php echo ($vo["tel"]); ?></td>
                    <?php if($vo["yaoqm"] != '' ): ?><td>
                            <?php echo ($vo["yaoqm"]); ?></td>
                            <?php else: ?>
                            <td style="color:green">无</td><?php endif; ?>

                        <?php if(($vo["realname"] != '') ): ?><td>
                                <?php echo ($vo["realname"]); ?></td>
                                <?php else: ?>
                                <td style="color:green">未实名认证</td><?php endif; ?>
                            <?php if(($vo["yue"] == '')): ?><td>0</td>
                                <?php else: ?>
                                <td>
                                    <?php echo ($vo["yue"]); ?></td><?php endif; ?>
                                <td>{$vo.userid}</td>

                                <td>
                                    <?php echo (date("y-m-d",$vo["createtime"])); ?></td>
                                    <?php if(($vo["status"] == 0) ): ?><td>正常</td>
                                        <?php else: ?>
                                        <td style="color:red">冻结</td><?php endif; ?>
                                    <td>

                                    <?php if(($vo["yaoqm"] == '')): else: ?> 
                                    <a class="link-update" href="<?php echo U('Admin/User/yaoqing/yid/'.$vo['yaoqm']);?>">邀请人</a><?php endif; ?>
                                        
                                        <a class="link-update" href="javascript:del(<?php echo ($vo['uid']); ?>)">删除</a>
                                        <a class="link-update" href="<?php echo U('Admin/User/userinfo/id/'.$vo['uid']);?>">查看</a>
                                        <?php if($vo["stAus"] == 0): ?><a href="javascript:update(<?php echo ($vo['uid']); ?>
                                                ,
                                                <?php echo ($vo['status']); ?>)">冻结</a>
                                                <?php else: ?>
                                                <a href="javascript:update(<?php echo ($vo['uid']); ?>
                                                    ,
                                                    <?php echo ($vo['status']); ?>)">解冻</a><?php endif; ?>
                                            </td>
                                        </tr>
                                    </foreach>
                                </table>
                                <div class="list-page">
                                    <?php echo ($page); ?></div>
                                </div>
                            </form>
                        </div>
                    </div>

                    <!--/main-->

                    <script type="text/javascript">
function update(id,sta) {
    $.MsgBox.Confirm("温馨提示", "执行修改确定继续吗？温馨提示", function () {
      $.post('/Admin/User/Update', {'sid':id,sta:sta}, function(data){
           $.MsgBox.Alert("消息", data);
                    location.reload([true])  
          });
        });
}
          function del(id){
            // $.MsgBox.Alert(1);
              $.MsgBox.Confirm("温馨提示", "执行删除后将无法恢复，确定继续吗？温馨提示", function () {
                $.post('/Admin/User/delete', {'sid':id}, function(data) {
                    $.MsgBox.Alert("消息", data);
                    location.reload([true])  
                });

         });
        }
            function selectAll(checkbox) {
                $('input[type=checkbox]').prop('checked', $(checkbox).prop('checked'));
            }
function delAll(){
    var idstr="";
    $('.del').each(function(){
        if($(this).prop("checked")){
            idstr+=","+$(this).val();
            }  
        })
     $.MsgBox.Confirm("温馨提示", "执行删除后将无法恢复，确定继续吗？温馨提示", function () {
    $.post('/Admin/User/delete',{"idstr":idstr,"action":"delAll"},function(data){
       $.MsgBox.Alert("消息", data);
        location.reload([true])  
        });
     });
}

</script>
                
    <!--/main-->
    <script>
        function onclick() {
            alert(1);
        }
    </script>
</div>
</body>
</html>